/*
 *
 * Copyright (c) 2020 The Raptor Authors. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#ifndef RAPTOR_LITE_INC_H_
#define RAPTOR_LITE_INC_H_

#include <raptor-lite/impl/acceptor.h>
#include <raptor-lite/impl/client.h>
#include <raptor-lite/impl/config.h>
#include <raptor-lite/impl/connector.h>
#include <raptor-lite/impl/container.h>
#include <raptor-lite/impl/endpoint.h>
#include <raptor-lite/impl/engine.h>
#include <raptor-lite/impl/handler.h>
#include <raptor-lite/impl/property.h>

#include <raptor-lite/utils/atomic.h>
#include <raptor-lite/utils/color.h>
#include <raptor-lite/utils/cpu.h>
#include <raptor-lite/utils/list_entry.h>
#include <raptor-lite/utils/log.h>
#include <raptor-lite/utils/mpscq.h>
#include <raptor-lite/utils/ref_counted_ptr.h>
#include <raptor-lite/utils/ref_counted.h>
#include <raptor-lite/utils/slice_buffer.h>
#include <raptor-lite/utils/slice.h>
#include <raptor-lite/utils/status.h>
#include <raptor-lite/utils/sync.h>
#include <raptor-lite/utils/thread.h>
#include <raptor-lite/utils/time.h>
#include <raptor-lite/utils/timer.h>
#include <raptor-lite/utils/useful.h>

// Global init
int RaptorGlobalStartup();

// Global cleanup
int RaptorGlobalCleanup();

/*
 * 1. Create a engine object
 * RaptorEngine engine = RaptorCreateEngine();
 * if engine != RAPTOR_ENGINE_NULL means success
 *
 * 2. Shutdown
 * Call engine.reset() shutdown manually, or let it
 * automatically closes when engine's lifetime ends
 */
RaptorEngine RaptorCreateEngine(raptor_error *err = RAPTOR_ERROR_NONE);

#endif // RAPTOR_LITE_INC_H_
